package com.example.elm_server_api.service;

import com.example.elm_server_api.domain.Role;
import com.example.elm_server_api.domain.SysUser;

import java.util.List;

/**
 * @author 张建平
 * @createtime 2022/6/15 下午5:26
 */
public interface UserService {

    SysUser saveUser(SysUser user);

    Role saveRole(Role role);

    void addRoleToUser(String username, String roleName);

    SysUser getUser(String username);

    List<SysUser> getUsers();

}
